package com.cweb.admin;

import com.cweb.framework.generator.GenSetting;
import com.cweb.framework.generator.MybiatsPlusGenerator;

import java.util.Arrays;

public class CodeGenerator {
    public static void main(String[] args) {
        // 代码自动生成
        GenSetting genSetting = new GenSetting(
                "jdbc:mysql://localhost:9201/cweb?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Hongkong"
                , "changfan"
                , "fanfan12"
                , CodeGenerator.class.getResource("").getPath()
        );

        // 控制要生成那些文件
//        genSetting.setOutController(false);
//        genSetting.setOutEntity(false);
//        genSetting.setOutMapper(false);
//        genSetting.setOutServiceImpl(false);
//        genSetting.setOutXml(false);
        genSetting.setModuleName("bbs"); // 文件夹
        new MybiatsPlusGenerator(genSetting).execute(Arrays.asList(""));
    }
}
